package com.ruoyi.inducePest.mapper.device;

import com.ruoyi.inducePest.domain.device.DeviceTypeAndCount;
import com.ruoyi.inducePest.domain.device.InduceDeviceInfo;
import com.ruoyi.inducePest.domain.device.Lure;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface InduceDeviceMapper {

    /**
     * 查询所有的设备信息
     * @return
     */
    public List<InduceDeviceInfo> selectAllDeviceInfo();

    /**
     * 查询所有的设备id
     * @return
     */
    public List<String> selectAllDeviceId();

    /**
     * 根据ID查询设备信息
     * @return
     */
    public InduceDeviceInfo selectDeviceById(Integer id);



    /**
     * 根据条件查询设备信息
     * @return
     */
    public List<InduceDeviceInfo> selectDeviceInfoByCondition(InduceDeviceInfo induceDeviceInfo);

    /**
     * 插入设备信息
     * @param induceDeviceInfo
     * @return
     */
    public int insertDeviceInfo(InduceDeviceInfo induceDeviceInfo);

    /**
     * 根据id修改设备属性
     * @param induceDeviceInfo
     * @return
     */
    public int updateDeviceInfoById(InduceDeviceInfo induceDeviceInfo);

    /**
     * 根据id修改设备属性
     *
     * @return
     */
    public List<DeviceTypeAndCount> selectDeviceTypeAndCount();


    List<String> selectAllLures();

    String selectAbbreviationByLure(String imgPest);

    int insertLure(Lure lure);

    int updateLure(Lure lure);

    int deleteLure(Lure lure);

    List<Lure> selectLures(Lure lure);

    String selectDeviceNameByDeviceId(Integer deviceId);
}
